package com.springBootStudy.spring_aoc.addLogDemo;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @ program: elasticSearch_springBoot_study
 * @ description:
 * @ author: Mr.Zhongsf
 * @ create: 2021-03-11 13:44
 **/

public class AnnotationPointCutTest {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("mapper/aopScan.xml");
        //注意:动态代理代理的是接口
        UserService userService =  context.getBean("userservice",UserService.class);
        userService.add();

    }
}
